package com.zyuan.lawyerport.view.dModule;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;


import com.zyuan.lawyerport.R;
import com.zyuan.lawyerport.view.dModule.activity.AboutActivity;
import com.zyuan.lawyerport.view.dModule.activity.CommonProblemActivity;
import com.zyuan.lawyerport.view.dModule.activity.FeedBackActivity;
import com.zyuan.lawyerport.view.dModule.activity.MyWantFinancingActivity;
import com.zyuan.lawyerport.view.dModule.activity.PersonalInfoActivity;
import com.zyuan.lawyerport.view.dModule.activity.UpdatePassWordActivity;

import butterknife.ButterKnife;
import butterknife.OnClick;
import common.base.fragment.BaseFragment;
import common.plugins.tbs.WebCoreAction;


/**
 * description 模块4
 * Created by JustTong on 2018/11/28.
 */
public class ModuleDFragment extends BaseFragment {


    @Override
    public void init() {

    }

    @Override
    public int setLayout() {
        return R.layout.fragment_mine_layout;
    }


    @Override
    public void initLoadStart() {

    }

    @Override
    public void initLoadEnd() {

    }

    @Override
    public void initBindingView(Object mBean) {

    }

    @OnClick({R.id.mine_img_head, R.id.mine_ll_want_financing, R.id.mine_ll_common_problem, R.id.mine_ll_update_password, R.id.home_ll_feedback,
            R.id.mine_ll_about, R.id.mine_ll_user_protocol})
    public void noClick(View v) {
        switch (v.getId()) {
            case R.id.mine_img_head:
                startActivity(new Intent(getContext(), PersonalInfoActivity.class));
                break;
            case R.id.mine_ll_want_financing:
                startActivity(new Intent(getContext(), MyWantFinancingActivity.class));
                break;
            case R.id.mine_ll_common_problem:
                startActivity(new Intent(getContext(), CommonProblemActivity.class));
                break;
            case R.id.mine_ll_update_password:
                startActivity(new Intent(getContext(), UpdatePassWordActivity.class));
                break;
            case R.id.home_ll_feedback:
                startActivity(new Intent(getContext(), FeedBackActivity.class));
                break;
            case R.id.mine_ll_about:
                startActivity(new Intent(getContext(), AboutActivity.class));
                break;
            case R.id.mine_ll_user_protocol:
//                startActivity(new Intent(getContext(), UserProtocolActivity.class));
                break;
        }
    }
}
